home *** CD-ROM | disk | FTP | other *** search
- #include "bbs.h"
-
- char AEString[1024];
-
- void AEPutStr(char *s)
- {
- char str[1023];
-
- if(BitPlanes>2) {
- if(AnsiColor) {
- if (IO_Flags[IOFLAG_SER_OUT]) SerPutStr(s);
- if (IO_Flags[IOFLAG_SCR_OUT]) ConPutStr(s);
- if (CaptureFP) {
- stripansi(s,str,&stripr,0,1);
- fprintf(CaptureFP,"%s",str);
-
- }
- return;
- }
- }
-
- stripansi(s,str,&strip,0,0);
-
- if (IO_Flags[IOFLAG_SER_OUT]) {
- if(AnsiColor) SerPutStr(s);
- else SerPutStr(str);
- }
- if (IO_Flags[IOFLAG_SCR_OUT]) {
- if(BitPlanes<3) ConPutStr(str);
- else {
- if(AnsiColor) ConPutStr(s);
- else ConPutStr(str);
- }
- }
-
- if (CaptureFP) {
- stripansi(s,str,&stripr,0,1);
- fprintf(CaptureFP,"%s",str); /* Ok if bitplanes < 2 */
- }
- }
-
-
- /* sort of a private printf() function *************************************/
-
- void AEPrintf (STRPTR format, ...)
- {
- RawDoFmt (format, &format + 1, (void (*))"\x16\xC0\x4E\x75", AEString);
- AEPutStr(AEString);
- }
-